import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { MessagesParamList } from '../../types';
import Messages from '../../screens/Messages/Messages';

const Stack = createStackNavigator<MessagesParamList>();
const { Navigator, Screen } = Stack

const MessagesNavigator = () => (
  <Navigator>
    <Screen
      name="Messages"
      component={Messages}
      options={{ headerTitle: '私信' }}
    />
  </Navigator>
);

export default MessagesNavigator